<?php
Configure::write('debug',0);
App::import('Vendor','nusoap/web_services_controller');

class UserServicesController extends WebServicesController
{
var $name='UserServices';
var $uses=array('User');
var $api=array(
    'name'=>array('doc'=>'Obtiene el Nombre de un Usuario',
         'input'=>array('user_id'=>'xsd:integer'),
                  'output'=>array('return'=>'xsd:string')),
   );

function name($user_id)
{
    $data=$this->User->findById($user_id);
 return $data['User']['Nombre'];

}
}
?>